package com.crowdfunding.service.impl;

import com.crowdfunding.bean.Member;
import com.crowdfunding.dao.MemberMapper;
import com.crowdfunding.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MemberServiceImpl implements MemberService {
    @Autowired
    private MemberMapper memberMapper;

    @Override
    public Member queryLogin(Map<String, Object> paramMap) {
        return memberMapper.queryLogin(paramMap);
    }


    @Override
    public Integer updateAcctType(Member member) {
        return memberMapper.updateAcctType(member);
    }

    @Override
    public Integer updateBaticinfo(Member loginMember) {
        return memberMapper.updateBaticinfo(loginMember);
    }

    @Override
    public int updateEmail(Member loginMember) {
        return memberMapper.updateEmail(loginMember);
    }

    @Override
    public void updateAuthstatus(Member loginMember) {
        memberMapper.updateAuthstatus(loginMember);
    }

    @Override
    public Member getMemberById(Integer memberid) {
        return memberMapper.getMemberById(memberid);
    }

    @Override
    public List<Map<String, Object>> queryCertByMemberId(Integer memberid) {
        return memberMapper.queryCertByMemberId(memberid);
    }


}
